package com.intellagric.agriecom.module.agriecom_news;

import com.intellagric.pojo.AgriecomNews;

import java.io.Serializable;

/**
 * 添加新闻的分类名，分类id
 * @Autuor cky
 * @Date 2018/12/7 16:49
*/
public class NewsResult extends AgriecomNews implements Serializable {



    private String newsTypeName;

    public String getNewsTypeName() {
        return newsTypeName;
    }

    public void setNewsTypeName(String newsTypeName) {
        this.newsTypeName = newsTypeName;
    }

    /**
     * 添加构造方法
     * @param news
     */
    public NewsResult(AgriecomNews news){
        this.setId(news.getId());
        this.setTitle(news.getTitle());
        this.setNewsTypeId(news.getNewsTypeId());
        this.setBrief(news.getBrief());
        this.setPic(news.getPic());
        this.setIsHot(news.getIsHot());
        this.setSource(news.getSource());
        this.setCommentCount(news.getCommentCount());
        this.setReadCount(news.getReadCount());
        this.setThumbsUpCount(news.getThumbsUpCount());
        this.setCreateBy(news.getCreateBy());
        this.setRemarks(news.getRemarks());
        this.setShareCount(news.getShareCount());
        this.setUpdateBy(news.getUpdateBy());
        this.setCreateDate(news.getCreateDate());
        this.setUpdateDate(news.getUpdateDate());
        this.setDelFlag(news.getDelFlag());
        this.setNewsDetail(news.getNewsDetail());

    }
    public NewsResult(){}




}
